import unittest

class TestDemo2(unittest.TestCase):

    @unittest.skip("直接跳过")
    def test_skip1(self):
        print('a')

    @unittest.skipIf(3 > 2, "条件为真，跳过用例")
    def test_skip2(self):
        print('a')

    @unittest.skipUnless(3 < 2, "条件为假，跳过用例")
    def test_skip3(self):
        print('a')

if __name__ == '__main__':
    unittest.main()